

<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: "form-signin" }) do |f| %>
  <%= f.error_notification %>
  <h2 class="text-center">用户设置</h2>
    <%= f.input :name, required: true, autofocus: true, placeholder: "请输入用户名",label: false, input_html: {class: "form-control"} %>
    <%= f.input :email, required: true,placeholder: "请输入Email",label: false , input_html: {class: "form-control"} %>
    <%= f.input :password, autocomplete: "off", hint: "如果您不需要更改密码，请留空", required: false,placeholder: "请输入密码" ,label: false, input_html: {class: "form-control"} %>
    <%= f.input :password_confirmation, required: false, placeholder: "请确认密码",label: false, input_html: {class: "form-control"}  %>
    <%= f.input :current_password, hint: "系统需要您输入当前的密码来完成操作", required: true, placeholder: "请输入新的密码",label: false, input_html: {class: "form-control"}  %>
  
  <%= f.button :submit, "更新用户信息", class: "btn btn-primary btn-block" %>

<% end %>

<h3>注销我的账号</h3>

<p>不喜欢? <%= link_to "注销我的账号", registration_path(resource_name), data: { confirm: "您确定?要不再想想？" }, method: :delete %></p>

<%= link_to "返回", :back %>
